//对外暴露配置路由(常量路由)
export const constantRoute = [
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login', //命名路由
    meta: {
      title: '登录', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏 true：隐藏
      icon: 'Edit',
    },
  },
  {
    //404
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      hidden: true,
      icon: 'Edit',
    },
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      hidden: true,
    },
  },
  {
    path: '/',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '公轴压装2',
    },
    name: 'layout',
    redirect: '/msPress-fitting',
    children: [
      {
        path: '/msPress-fitting',
        component: () => import('@/views/msPress-fitting/index.vue'),
        meta: {
          title: '公轴压装',
        },
      }
    ],
  },
  {
    path: '/fs',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '母轴压装2',
    },
    name: 'fs',
    redirect: '/fsPress-fitting',
    children: [
      {
        path: '/fsPress-fitting',
        component: () => import('@/views/fsPress-fitting/index.vue'),
        meta: {
          title: '母轴压装',
        },
      },
    ],
  },

  // 系统管理
  {
    path: '/system',
    component: () => import('@/layout/index.vue'),
    name: 'System',
    meta: {
      title: '系统管理',
      icon: 'tools',
    },
    redirect: '/system/user',
    children: [
      {
        path: '/system/user',
        component: () => import('@/views/system/user/index.vue'),
        name: 'User',
        meta: {
          title: '用户管理',
          icon: 'Position',
        },
      },
    ],
  },
];
